﻿using MediatR;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using T.S.BaseData.Api.AppClinet.Commend.proce;
using T.S.BaseData.Api.Dto.Proce;
using T.S.BaseData.ErrorCode;

namespace T.S.BaseData.Api.Controllers
{
    /// <summary>
    /// 深加工 控制器
    /// </summary>
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class ProceController : ControllerBase
    {
        private readonly IMediator mediator;

        public ProceController(IMediator mediator)
        {
            this.mediator = mediator;
        }

        /// <summary>
        /// 对应的深加工信息 
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        [HttpGet]
        public Task<ApiResult<List<GetProceDto>>> ProceSet([FromQuery]ProceSetCommand request)
        {
            return mediator.Send(request);
        }

    }
}
